package com.xz.log.logback.sample;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by fingal on 2018/7/18.
 */
public class LogbackSample {
    private static final Logger logger = LoggerFactory.getLogger(LogbackSample.class);

    private static final LogbackSample INSTANCE = new LogbackSample();

    private LogbackSample() {}

    public static LogbackSample getInstance() {
        return INSTANCE;
    }

    public void log() {
        logger.trace("this is a trace log...logback");

        logger.debug("this is a debug log...logback");

        logger.info("this is a info log...logback");

        logger.warn("this is a warn log...logback");

        logger.error("this is a error log...logback");
    }

}
